package it.patamau.bukkit.deathmatch;

import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerEvent;
import org.bukkit.event.player.PlayerListener;


public class DMPlayerListener extends PlayerListener {

	private DMPlugin plugin;
	
	public DMPlayerListener(DMPlugin plugin){
		this.plugin = plugin;
	}
	
	public void onPlayerJoin(PlayerEvent event){
		plugin.sendMessage("dm.player.join",event.getPlayer());
	}
	
	public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event){
		plugin.sendMessage("dm.player.command", event.getPlayer(),event.getEventName());
	}
}
